package com.hhit.bigscreenbackmanage.dao.aqgl;

import cn.hutool.json.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.hhit.bigscreenbackmanage.entity.aqgl.TAqglFx;
import com.hhit.bigscreenbackmanage.entity.aqgl.TJjResourceDynamicRiskInfo;
import com.hhit.bigscreenbackmanage.vo.aqgl.AqglSearchVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface AqglFxDao {

    /**
     * @Description: 批量保存每日风险统计详情
     * @Author: qianchengcheng
     * @Date: 2021/7/22 17:37
     * @Param: [tAqglFxList]
     * @Return: int
     **/
    int batchSaveAqglFx(@Param("list") List<TAqglFx> tAqglFxList) throws Exception;

    /**
     * @Description: 分页查询每日风险统计详情数据
     * @Author: qianchengcheng
     * @Date: 2021/7/22 18:01
     * @Param: [aqglFxSearchVo]
     * @Return: java.util.List<com.hhit.bigscreenbackmanage.entity.aqgl.TAqglFx>
     **/
    List<TAqglFx> getAqglFxPageInfo(AqglSearchVo aqglSearchVo) throws Exception;

    /**
     * @Description: 根据datetime查询数据
     * @Author: qianchengcheng
     * @Date: 2021/7/26 17:20
     * @Param: [datetime]
     * @Return: java.util.List<java.lang.String>
     **/
    List<String> getAqglFxByDateTime(@Param("datetime") String datetime) throws Exception;

    /**
     * @Description: 根据id批量删除数据
     * @Author: qianchengcheng
     * @Date: 2021/7/26 17:21
     * @Param: [ids]
     * @Return: int
     **/
    int batchDeleteAqglFxByIds(@Param("ids") List<String> ids) throws Exception;


    List<TJjResourceDynamicRiskInfo> getDayRiskManagementDetail(JSONObject json) throws Exception;

    List<TJjResourceDynamicRiskInfo> getDayRiskInBuildingDetail(JSONObject json) throws Exception;
}
